home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / SashP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  2.3 KB  |  98 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: SashP.h,v $ $Revision: 1.19 $ $Date: 92/05/14 12:56:08 $ */
  6. /*
  7. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  8. /*
  9. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  10. /*
  11. *  (c) Copyright 1988 MASSACHUSETTS INSTITUTE OF TECHNOLOGY  */
  12. /*
  13.  *  SashP.h - Private definitions for Sash widget (Used by VPane Widget)
  14.  *
  15.  */
  16.  
  17. #ifndef _XmSashP_h
  18. #define _XmSashP_h
  19.  
  20. #include <Xm/PrimitiveP.h>
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26. /*****************************************************************************
  27.  *
  28.  * Sash Widget Private Data
  29.  *
  30.  *****************************************************************************/
  31.  
  32. /* New fields for the Sash widget class record */
  33. typedef struct {int empty;} XmSashClassPart;
  34.  
  35. /* Full Class record declaration */
  36. typedef struct _XmSashClassRec {
  37.     CoreClassPart         core_class;
  38.     XmPrimitiveClassPart  primitive_class;
  39.     XmSashClassPart    sash_class;
  40. } XmSashClassRec;
  41.  
  42. typedef struct _XmSashClassRec *XmSashWidgetClass;
  43.  
  44. externalref XmSashClassRec xmSashClassRec;
  45.  
  46. /* New fields for the Sash widget record */
  47. typedef struct {
  48.   XtCallbackList sash_action;
  49.   Boolean has_focus;
  50. } XmSashPart;
  51.  
  52. /*****************************************************************************
  53.  *
  54.  * Full instance record declaration
  55.  *
  56.  ****************************************************************************/
  57.  
  58. typedef struct _XmSashRec {
  59.    CorePart         core;
  60.    XmPrimitivePart  primitive;
  61.    XmSashPart       sash;
  62. } XmSashRec;
  63.  
  64. typedef struct _XmSashRec      *XmSashWidget;
  65.  
  66. typedef struct {
  67.   XEvent *event;        /* the event causing the SashAction */
  68.   String *params;        /* the TranslationTable params */
  69.   Cardinal num_params;        /* count of params */
  70. } SashCallDataRec, *SashCallData;
  71.  
  72. /* Class Record Constant */
  73.  
  74. extern WidgetClass xmSashWidgetClass;
  75.  
  76. #ifndef XmIsSash
  77. #define XmIsSash(w)    XtIsSubclass(w, xmSashWidgetClass)
  78. #endif /* XmIsSash */
  79.  
  80.  
  81. /********    Private Function Declarations    ********/
  82. #ifdef _NO_PROTO
  83.  
  84.  
  85. #else
  86.  
  87.  
  88. #endif /* _NO_PROTO */
  89. /********    End Private Function Declarations    ********/
  90.  
  91.  
  92. #ifdef __cplusplus
  93. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  94. #endif
  95.  
  96. #endif /* _XmSashP_h */
  97. /* DON'T ADD ANYTHING AFTER THIS #endif */
  98.